<!DOCTYPE html PUBLIC "">
<html xmlns="">
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">

    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta charset="utf-8">
    <title>促销活动列表</title>

    <meta name="description" content="">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0">

 <!--    <script>
      (function () {
        if (window !== window.top) {
          window.top.location.href = 'http://www.818tu.com';
        }
      })();
    </script> -->

    <!-- bootstrap & fontawesome -->








    <!-- page specific plugin styles -->
    <script src="__PUBLIC__/admin/js/jquery.min.js"></script>
    <script src="__PUBLIC__/admin/js/lodash.min.js"></script>
    <script src="__PUBLIC__/admin/js/moment.min.js"></script>
    <script src="__PUBLIC__/admin/js/zh-cn.js"></script>
    <script src="__PUBLIC__/admin/js/numeral.min.js"></script>
    <script src="__PUBLIC__/admin/js/toastr.min.js"></script>
    <script src="__PUBLIC__/admin/js/cookies.js"></script>
    <script src="__PUBLIC__/admin/js/knockout-min.js"></script>
    <script src="__PUBLIC__/admin/js/knockout.mapping.min.js"></script>
    <script src="__PUBLIC__/admin/js/bootstrap-datetimepicker.min.js"></script>
    <script src="__PUBLIC__/admin/js/jquery.validate.min.js"></script>
    <script src="__PUBLIC__/admin/js/jquery.validate.unobtrusive.min.js"></script>
    <script src="__PUBLIC__/admin/js/clipboard.min.js"></script>
    <script src="__PUBLIC__/admin/js/select2.min.js"></script>
    <script src="__PUBLIC__/admin/js/zh-cn_001.js"></script>
    <script src="__PUBLIC__/admin/js/admin.js"></script>
    <script src="__PUBLIC__/admin/js/K.js"></script>
    <script>
      moment.locale('zh-cn');

      toastr.options.positionClass = 'toast-bottom-right';

      $.fn.select2.defaults.set('language', 'zh-CN');
    </script>

    <!-- text fonts -->
    <!-- ace styles -->
    <!--[if lte IE 9]>
        <link rel="stylesheet" href="https://novel.818tu.com/static/assets/css/ace-part2.min.css" />
    <![endif]-->
    <!--[if lte IE 9]>
        <link rel="stylesheet" href="https://novel.818tu.com/static/css/ace-ie.min.css" />
    <![endif]-->
    <!-- inline styles related to this page -->

    <!-- ace settings handler -->
    <script src="__PUBLIC__/admin/js/ace-extra.min.js"></script>

    <!-- <script>
      var __BASEURL = "https://novel.818tu.com/";
    </script> -->
<link href="__PUBLIC__/admin/dataTables/dataTables.bootstrap.css" rel="stylesheet" />
<link rel="stylesheet" type="text/css" href="__PUBLIC__/admin/css/glyphicons-halflings-regular.css">
<link media="all" href="__PUBLIC__/admin/css/index04.css" type="text/css" rel="stylesheet">
<link rel="stylesheet" type="text/css" href="__PUBLIC__/admin/css/cc.css">
</head>
<body class="no-skin modal-open" style="padding-right: 17px;">

    <!-- #section:basics/navbar.layout -->
    <include file="./Public/gong/title.html" />

    <div class="main-container" id="main-container">
      <script type="text/javascript">
        try{ace.settings.check('main-container' , 'fixed')}catch(e){}
      </script>

      <div id="sidebar" class="sidebar responsive">
          <script type="text/javascript">
            try{ace.settings.check('sidebar' , 'fixed')}catch(e){}
          </script>

<include file="./Public/gong/list.html" />
          <div class="sidebar-toggle sidebar-collapse" id="sidebar-collapse">
            <i class="ace-icon fa fa-angle-double-left" data-icon1="ace-icon fa fa-angle-double-left" data-icon2="ace-icon fa fa-angle-double-right"></i>
          </div>

          <script type="text/javascript">
            try{ace.settings.check('sidebar' , 'collapsed')}catch(e){}
          </script>
      </div>
      <!-- /section:basics/sidebar -->
      <div class="main-content">
        <div class="breadcrumbs" id="breadcrumbs">
          <script type="text/javascript">
            try{ace.settings.check('breadcrumbs' , 'fixed')}catch(e){}
          </script>

          <ul class="breadcrumb">
            <li>
              <i class="ace-icon fa fa-home home-icon"></i>
              <a href="__APP__/Admin/Index/index.html">Home</a>
            </li>
            <li class="active">促销活动列表</li>
          </ul><!-- /.breadcrumb -->

          <!-- /section:basics/content.searchbox -->
        </div>

        <!-- /section:basics/content.breadcrumbs -->
        <div class="page-content">
          <div class="page-content-area">
            <div class="row">
              <div class="col-xs-12">
                <!-- PAGE CONTENT BEGINS -->

                <!--/span-->
                <!-- left menu ends -->



<if condition="$admin['level'] heq '0'">
<div class="actions-bar">
    <button type="button" class="btn btn-primary" data-toggle="add-keyword" onclick="window.location.href='__URL__/add_activity_list.html'" ><i class="fa fa-plus"></i> 添加促销活动</button>
</div>
</if>
<table class="table table-bordered table-stripped" id="dataTables-example">
    <thead>
    <tr>
        <th  class="text-center">活动标题</th>
        <th  class="text-center">发起时间</th>
        <th  class="text-center">结束时间</th>
        <th  class="text-center">30元赠送额度</th>
        <th class="text-center">
            50元赠送额度
        </th>
        <th class="text-center">
            100元赠送额度
        </th>
        <th class="text-center">
            200元赠送额度
        </th>
        <th class="text-center">
           季度VIP购买价格
        </th>
        <th class="text-center">
           VIP购买价格
        </th>
        <th class="text-center">操作</th>
    </tr>
    </thead>
    <tbody>
        <volist name="pro" id="vk">
            <tr class="data-item" data-referral-link-id="196087">
                <td class="text-center">
                    {$vk.hname}
                </td>
                <td class="text-center">
                    {$vk.time1|date="Y-m-d",###}
                </td>
                <td class="text-center">
                    {$vk.time2|date="Y-m-d",###}
                </td>
                <td class="text-center">
                    {$vk.p30} 书币
                </td>
                <td class="text-center">
                    {$vk.p50} 书币
                </td>
                <td class="text-center">
                    {$vk.p100} 书币
                </td>
                <td class="text-center">
                    {$vk.p200} 书币
                </td>
                <td class="text-center">
                    {$vk.pvip} ￥
                </td>
                <td class="text-center">
                    {$vk.pyear_vip} ￥
                </td>
            <if condition="$admin['level'] heq '0'">
                <td class="text-center">
                <if condition="$vk['st'] heq '2'">
                    <a class="btn btn-xs btn-success" href="__URL__/edit_reply_keywords?id={$vk.id}"><i class="fa fa-list"></i>关闭活动</a>
                <else />
                    <a class="btn btn-xs btn-success" ><i class="fa fa-list"></i> 已关闭</a>
                </if>
                    <a href="{:U('/Admin/Static/add_activity_list/id/'.$vk['id'])}">编辑</a>
                </td>
            <else />
                <td class="text-center" >
                    <if condition="$vk['st'] heq '2'">
                        <a class="btn btn-xs btn-success creatlink" data-id="{$vk.id}"><i class="fa fa-list"></i> 生成促销活动推广链接</a>

                <else />

                        <a class="btn btn-xs btn-success "><i class="fa fa-list"></i> 已结束</a>
                    </if>
                </td>
            </if>
            </tr>
        </volist>
    </tbody>
</table>

<!-- <script type="text/javascript">

    $('.ip').click(function(){
        $('#big').css('display','block');
    });
    $('.close').click(function(){
        $('#big').css('display','none');
    });

</script> -->
<script type="text/javascript">
$('.creatlink').click(function(event) {
    var id = $(this).data('id');
    $.get('__URL__/creatpaylinks',{'id':id},function(data) {
        if(data == 'false')
        {
            alert('生成失败，请重试');
        }else{
            //alert(data);
            $('#big').css('display','block');
            $('#fe_text').html(data);
        }
        //alert(1);
    });
    //alert(id);
});
$('.close').click(function(){
        $('#big').css('display','none');
    });
</script>
<!-- js复制内容 -->

<script type="text/javascript">
$("#d_clip_button").click(function(){
    var $div = $('#fe_text').html();
    var str = $div;
    K.Tool.copy(str.replace(/&amp;/g,"&"))
});

</script>
                                <!-- PAGE CONTENT ENDS -->
                            </div><!-- /.col -->
                        </div><!-- /.row -->
                    </div><!-- /.page-content-area -->
                </div><!-- /.page-content -->
            </div><!-- /.main-content -->

        </div><!-- /.main-container -->

        <!-- basic scripts -->

        <!-- <script type="text/javascript">
            if('ontouchstart' in document.documentElement) document.write("<script src='https://novel.818tu.com/static/assets/js/jquery.mobile.custom.min.js'>"+"<"+"/script>");
        </script> -->
        <script src="__PUBLIC__/admin/js/bootstrap.min.js"></script>
        <script src="__PUBLIC__/admin/js/jquery.webui-popover.min.js"></script>
        <script src="__PUBLIC__/admin/js/jquery.ui.widget.min.js"></script>
        <script src="__PUBLIC__/admin/js/jquery.fileupload.min.js"></script>

        <!-- page specific plugin scripts -->

        <!-- ace scripts -->
        <script src="__PUBLIC__/admin/js/ace-elements.min.js"></script>
        <script src="__PUBLIC__/admin/js/ace.min.js"></script>

        <!-- inline scripts related to this page -->

        <!-- the following scripts are used in demo only for onpage help and you don't need them -->


        <!-- <script type="text/javascript"> ace.vars['base'] = 'https://novel.818tu.com/static'; </script> -->
        <script src="__PUBLIC__/admin/js/elements.onpage-help.js"></script>
        <script src="__PUBLIC__/admin/js/ace.onpage-help.js"></script>
        <script src="__PUBLIC__/admin/dataTables/jquery.dataTables.js"></script>
        <script src="__PUBLIC__/admin/dataTables/dataTables.bootstrap.js"></script>
            <script>
                $(document).ready(function () {
                    $('#dataTables-example').dataTable();
                });
        </script>


<div class="modal-backdrop fade in" style="display:none;background:rgba(0,0,0)"></div>
</body>
</html>
